var JieListCell = function(aoParentCol, aoParentRow){
	
	JieDataCell.call(this, aoParentCol, aoParentRow);
//alert(this.setWidth);

//	this.element.className = "JieCell";
	this.editCell = function(){

		if(!this.parentCol.isShow) return false;
		if(!this.parentCol.isEdit) return false;
		if(this.editType == "edit") return false;

		Util.removeChild(this.element);

		this.elEditer = Util.gfn_makeCommob(this.element, this.parentCol.oList);
		this.elEditer.style.width = this.getWidth();
		this.elEditer.style.height = this.getHeight();
		this.elEditer.style.backgroundColor = this.getBgColor();
//	alert(this.dateForeColor);
		this.elEditer.style.color = this.getForeColor();
		this.elEditer.style.fontFamily = this.getFontFamily();
		this.elEditer.style.fontSize = this.getFontSize();

		this.elEditer.focus();
		this.editType = "edit";
		return true;
	}
	this.closeCell = function(){
		//alert(!this.parentCol.isShow);
		if(!this.parentCol.isShow) return;
		if(!this.parentCol.isEdit) return;
		if(this.editType == "show") return;

		var sValue = this.elEditer.value
		
		this.elEditer = null;
		Util.removeChild(this.element);
		this.setValue(sValue);
		this.editType = "show";
	},
	this.setValue = function(asValue){
//		alert(asValue);
		var sText = this.parentCol.oList[asValue]?this.parentCol.oList[asValue]:"";
		if (!this.elEditer) {
			Util.removeChild(this.element);
			this.element.appendChild(document.createTextNode(sText));
		}else{
			this.elEditer.value = asValue;		
		}
		this.value = asValue;
	}

};

JieListCell.prototype = JieDataCell.prototype;


